"use strict";

exports.__esModule = true;
exports.valueGetter = valueGetter;
var _object = require("../../../helpers/object");
/**
 * Defines the value being displayed in an autocomplete-typed cells.
 *
 * @param {*} value The value to be displayed.
 * @returns {*} The final value of the cell.
 */
function valueGetter(value) {
  return (0, _object.isObject)(value) && value.value !== undefined ? value.value : value;
}